//
//  LogManager.h
//  CarpoolWithFriends
//
//  Created by Kai Wang on 5/18/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#define debug_separator() NSLog( @"────────────────────────────────────────────────────────────────────────────" );

// multiple parameter, any type
#define debug(fmt,...) NSLog([ NSString stringWithFormat:@"File: %@ Line:%d : %@", [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, fmt ], ##__VA_ARGS__);

// debug specific type, single parameter
#define debug_string(arg) debug(@"string: %@", arg);
#define debug_object( arg ) debug( @"Object: %@", arg );
#define debug_int( arg ) debug( @"integer: %i", arg );
#define debug_float( arg ) debug( @"float: %f", arg );
#define debug_rect( arg ) debug( @"CGRect ( %f, %f, %f, %f)", arg.origin.x, arg.origin.y, arg.size.width, arg.size.height );
#define debug_point( arg ) debug( @"CGPoint ( %f, %f )", arg.x, arg.y );
#define debug_bool( arg )   debug( @"Boolean: %@", ( arg == YES ? @"YES" : @"NO" ) );